// 导入路径的包
import VueRouter from 'Vue-router'

import login from './login/login.vue'
import index from './navone/index.vue'
// import icons from './navone/icons.vue'

import navtwoindex from './navtwo/index.vue'
import navthreeindex from './navthree/index.vue'

var rouetr = new VueRouter({
    //mode:"history", // 启用history路由模式  模式是hash模式 --- 开发阶段建议先用默认模式
    routes: [
        { path: '', redirect: { path: '/login' } },
        { path: '/login', component: login, name: "login" },
        { path: '/index', component: index, name: "index" },
        // { path: '/icons', component: icons, name: "icons" },
        { path: '/nav_two', component: navtwoindex, name: "nav_two" },
        { path: '/nav_three', component: navthreeindex, name: "nav_three" },

    ]
})
export default rouetr